package br.com.mobimenu.model.impl;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Embeddable
public class Endereco {

	@Basic
	@Column(length = 100)
	private String cep;

	@Basic
	@Column(length = 100)
	private String complemento;

	@ManyToOne
	@JoinColumn(name = "bairro_id")
	private Bairro bairro;

	public Endereco() {

	}

	public Bairro getBairro() {
		return this.bairro;
	}

	public String getCep() {
		return this.cep;
	}

	public String getComplemento() {
		return this.complemento;
	}

	public void setBairro(Bairro bairro) {
		this.bairro = bairro;
	}

	public void setCep(String cep) {
		this.cep = cep;
	}

	public void setComplemento(String complemento) {
		this.complemento = complemento;
	}

}
